MPCancelTimer

Cancels an armed timer.

OSStatus MPCancelTimer (
                     MPTimerID timerID,
                     AbsoluteTime *timeRemaining);
timerID
A value of type MPTimerID that specifies the ID of the armed timer you want to cancel.

timeRemaining
A pointer to a variable of type AbsoluteTime . On return, the variable contains the time remaining before the timer would have expired.

function result
A result code. See Result Codes for a list of possible values. If the timer has already expired, this function returns kMPInsufficientResourcesErr .
VERSION NOTES
Introduced with Multiprocessing Services 2.0.

SEE ALSO
The function MPArmTimer .


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)